home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000410_fdc@columbia.edu_Tue Nov 11 14:47:53 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: BBS Script "Gets ahead of itself"
  5. Date: 11 Nov 2003 19:44:35 GMT
  6. Organization: Columbia University
  7. Lines: 46
  8. Message-ID: <slrnbr2f13.67q.fdc@sesame.cc.columbia.edu>
  9. References: <5casb.80068$v82.4551802@twister.southeast.rr.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1068579875 18600 128.59.59.56 (11 Nov 2003 19:44:35 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 11 Nov 2003 19:44:35 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14666
  17.  
  18. In article <5casb.80068$v82.4551802@twister.southeast.rr.com>, x@y.org wrote:
  19. : Still a relatively new kermit script writer, am automating a BBS logon we
  20. : must do daily, where I send (output) my login info and then make a request
  21. : of the BBS, i.e.
  22. : lineout $$REQ DOWNLOAD OUR_FILES PARAM1 PARAM2 PARAM3
  23. : I have kermit set up to autodownload the files, which are available via
  24. : ZMODEM.
  25. : How do I set up my script such that it does not "run ahead" and
  26. : post-process the files before all of them are downloaded?
  27. Zmodem is like Kermit; it can send a group of files in one download.  If
  28. that's what your BBS does, then Kermit executes only one (perhaps implied)
  29. RECEIVE command, and after that it's safe to start disposing of the files.
  30. In this case you might want to disable autodownload and just give a RECEIVE
  31. command at the point where you know the BBS will start sending:
  32.  
  33.   set protocol zmodem
  34.   lineout $$REQ DOWNLOAD OUR_FILES PARAM1 PARAM2 PARAM3  
  35.   receive
  36.   if fail (do something)
  37.   ; postprocess the files here.
  38.  
  39. Or the BBS might do one Zmodem transfer per file, which is kind of annoying,
  40. but Kermit can handle that too.  First find out what messages can be
  41. displayed when the transfer completes, then have Kermit look for them.
  42. For simplicity let's assume there's only one message, so you can use a
  43. simple INPUT command that either succeeds or fails:
  44.  
  45.   set protocol zmodem
  46.   set input autodownload on
  47.   input 120 All files downloaded
  48.   if fail (do something)
  49.  
  50. When INPUT AUTODOWNLOAD is ON and an INPUT command is active, the download
  51. begins automatically when Zmodem sends its ID string, **^XB000000... or
  52. whatever.  If the INPUT command is still active after the Zmodem download
  53. and another Zmodem download starts, the second transfer also begins
  54. automatically, and so on.  The trick is to set the INPUT timeout interval
  55. long enough to accommodate the longest expected series of transfers.  It
  56. will still terminate immediate when the specified message appears, but you
  57. don't want it to time out before all the files have been sent.
  58.  
  59. - Frank
  60.